﻿using System.Collections.Generic;

namespace ESoft.Core.Web.VO
{
    public class PageResult<T>
    {
        public IEnumerable<T> Items { get; set; }
        public int TotalCount { get; set; }
        public int PageCount { get; set; }
        public int CurrentPage { get; set; }
        public int PageSize { get; set; }

        public PageResult(IEnumerable<T> items, int totalCount)
        {
            this.Items = items;
            this.TotalCount = totalCount;
        }

        public PageResult()
        {

        }
    }
}
